package com.ktjy.ktmall.mapper;

import java.util.List;
import com.ktjy.ktmall.domain.Attr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 规格属性Mapper接口
 *
 * @author ktjy
 * @date 2025-03-13
 */
public interface AttrMapper extends BaseMapper<Attr> {
    /**
     * 查询规格属性列表
     *
     * @param attr 规格属性
     * @return 规格属性集合
     */
    public List<Attr> selectAttrList(Attr attr);

    int insertAttr(Attr attr);

    public List<Attr> getAttrListByAttrId(@Param("attrId") Long attrId,@Param("stockSku") String stockSku);
}